﻿#pragma once
#include "AbsCalNode.h"
#include "AbsIoNode.h"
class SineWaveNode : public AbsCalNode
{
public:
    SineWaveNode();
    virtual ~SineWaveNode();

    // 通过 AbsCalNode 继承
    QString lastErrorMsg() override;
    QString displayText() override;
    QVariantMap getParams() override;
    void setParams(QVariantMap paramsMap) override;
    bool run() override;

private:
    AbsIoNode* m_out;
    qreal m_amplitude;
    // 通过 AbsCalNode 继承
    QString nodeName() override;
    ///< 振幅
};
